import Router from "koa-router";

import { contentController } from "../../controller";

const router = new Router();

// 新增
router.post('/create', async (ctx) => contentController.create(ctx));
// 编辑
router.post('/edit', async (ctx) => contentController.edit(ctx));
// 查询
router.get('/details', (ctx) => contentController.details(ctx));

export default router;
